package com.ss.android.lockscreen.activity.lock;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;

import com.ss.android.lockscreen.bb;
import com.ss.android.lockscreen.http.data.ScreenCell.Type;
import com.ss.android.lockscreen.http.data.ScreenCell;
import org.json.JSONException;
import org.json.JSONObject;

final class d extends AnimatorListenerAdapter {
    private final LockScreenActivity a;

    d(LockScreenActivity arg1) {
        this.a = arg1;

    }

    public final void onAnimationEnd(Animator arg7) {
        super.onAnimationEnd(arg7);
        LockScreenActivity.w(this.a);
        LockScreenActivity.c(this.a).a();
        ScreenCell v0 = LockScreenActivity.m(this.a).b(LockScreenActivity.a(this.a).getCurrentItem());
        if(v0 != null && bb.a().f != null) {
            JSONObject v1 = new JSONObject();
            try {
                v1.put("action", "unlock_success");
                v1.put("group_id", String.valueOf(v0.f));
                v1.put("item_id", String.valueOf(v0.g));
                if(v0.b == Type.LittleVideo) {
                    v1.put("group_type", "little_video");
                }else {
                    String v2 = "group_type";
                    String v0_2 = v0.i ? "video" : "article";
                    v1.put(v2, v0_2);
                }
            }
            catch(JSONException v0_1) {
                v0_1.printStackTrace();
            }

            android.support.design.a.onEvent("lockscreen_picture", v1);
        }
    }
}

